package com.yonyou.pmclouds.basecom.bp.processor;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.basecom.util.BeanHelper;
import com.yonyou.pmclouds.basecom.util.CommonFieldConst;
import com.yonyou.pmclouds.messagenotice.entity.MessageNoticeVO;
import com.yonyou.pmclouds.messagenotice.rmiitf.MessageNoticeMaintain;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MobileNoticeInsertProcessor<T extends SuperVO> implements SingleProcessor<T> {

    private final MessageNoticeMaintain noticeMaintain;

    @Autowired
    public MobileNoticeInsertProcessor(MessageNoticeMaintain noticeMaintain) {
        this.noticeMaintain = noticeMaintain;
    }

    @Override
    public void process(T vo, T orig) throws BusinessException {
        noticeMaintain.insertMessageNotice(vo);
    }

}
